﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <base href="/" />
	
    <link href="icon.css" rel="stylesheet" />
    <link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
	
    <link rel="icon" type="image/png" href="favicon.ico" />
    <HeadOutlet @rendermode="@RenderModeForPage" />
</head>

<body>
    <Routes @rendermode="@RenderModeForPage" />

    <script src="_framework/blazor.web.js"></script>
	<script src="_content/MudBlazor/MudBlazor.min.js"></script>
</body>

</html>

@inject NavigationManager Navigation;

@code{
    
    /// <summary>
    /// ******这里的修改，确保能正常进行JS交互，使用 LocalStroage 保存登录信息,  Proram:builder.Services.AddBlazoredLocalStorage();
    /// </summary>
    private IComponentRenderMode? RenderModeForPage {
        get
        {
            var url = Navigation.Uri;

            return url.StartsWith("/Login")
            ? null
            : new InteractiveServerRenderMode(prerender: false);
        }
    }
}